import { defineConfig } from 'vite'
import path from "path"
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react() ],
  css: {
    preprocessorOptions: {
      less: {
         //引入了全局的 SCSS 文件 global.scss
          additionalData: `@import "./src/assets/css/variables.less";`,
      }
    }
  },
  resolve: {
    alias: {
      "@": path.resolve(__dirname, './src')
    }
  },
  server: {
    host: '0.0.0.0'
  },
  
})
